{% include "base.html" %}

{% block body %}
{% if perms.forum.add_topic %}
<form action="{% url addTopic topic_id %}" method="post">
{% if topic_id == "0" %}
{% if perms.forum.delete_topic %}
{% csrf_token %}
{{ topicForm.as_table }}
<br />
{{ entryForm.as_table }}

<br />
<input type="submit" value="Submit" />
{% else %}
{% include "permdenied.html" %}
{% endif %}
{% else %}
{% csrf_token %}
{{ topicForm.as_table }}
<br />
{{ entryForm.as_table }}

<br />
<input type="submit" value="Submit" />
{% endif %}
</form> 
{% endif %}

{% endblock %}
